import React from 'react';
import ReactDom from 'react-dom';

export default class ContentChild extends React.Component{
    render() {
        return (
            <div>
                <p>这是子内容页面 username : {this.props.username} userid: {this.props.userid}</p>
                <p>avater : {this.props.avater}</p>
                <p>子页面输入：<input type="text" onChange={this.props.childValueChange}/></p>
            </div>
        )
    }
}

ContentChild.defaultProps = {
    username : 'subMary'
};